import instance1 from "@/assets/http1"

export const homeGoodList = (count:number,limit:number)=> instance1.get('/pro/list',{params:{ count:count,limitNum:limit}})

export const getCateList = ()=> instance1.get('/pro/categorylist')

export const getCateGoodslist = (category:string)=> instance1.get('/pro/categorybrandlist',{
    params:{category}
})
export const getGoodsByCateAndBrand = (brand: string, category: string) => instance1.get('/pro/categorybrandprolist', {
    params: { brand, category }
  })

//搜索列表
export const getSearchList = (keyword:string)=> instance1.get('/pro/search',{params:{keyword}})
//热门列表
export const getSearchHotList = ()=> instance1.get('/pro/hotword')
//获取商品详情
export const getGoodsDetailInfo = (proid:string )=> instance1.get(`/pro/detail/${ proid }`)
